//
//  KYweatherModel.h
//  kuaiyi
//
//  Created by 杨亮 on 16/3/10.
//  Copyright © 2016年 kuaiyi. All rights reserved.
//

#import <Foundation/Foundation.h>
/*
 {
	status = success;
	results = (
	{
 
	weather_data = (
 
 
	{
	nightPictureUrl = http://api.map.baidu.com/images/weather/night/qing.png;
	weather = 晴;
	wind = 微风;
	temperature = 8 ~ -2℃;
	dayPictureUrl = http://api.map.baidu.com/images/weather/day/qing.png;
	date = 周五 03月11日 (实时：5℃);
 }
 ,
	{
	nightPictureUrl = http://api.map.baidu.com/images/weather/night/qing.png;
	weather = 多云转晴;
	wind = 微风;
	temperature = 9 ~ 1℃;
	dayPictureUrl = http://api.map.baidu.com/images/weather/day/duoyun.png;
	date = 周六;
 }
 ,
	{
	nightPictureUrl = http://api.map.baidu.com/images/weather/night/qing.png;
	weather = 晴;
	wind = 北风3-4级;
	temperature = 12 ~ 1℃;
	dayPictureUrl = http://api.map.baidu.com/images/weather/day/qing.png;
	date = 周日;
 }
 ,
	{
	nightPictureUrl = http://api.map.baidu.com/images/weather/night/duoyun.png;
	weather = 晴转多云;
	wind = 微风;
	temperature = 15 ~ 3℃;
	dayPictureUrl = http://api.map.baidu.com/images/weather/day/qing.png;
	date = 周一;
 }
 ,
 );
 
 
	currentCity = 北京市;
	pm25 = 55;
 
 
	index = (
	{
	title = 穿衣;
	zs = 较冷;
	tipt = 穿衣指数;
	des = 建议着厚外套加毛衣等服装。年老体弱者宜着大衣、呢外套加羊毛衫。;
 }
 ,
	{
	title = 洗车;
	zs = 较适宜;
	tipt = 洗车指数;
	des = 较适宜洗车，未来一天无雨，风力较小，擦洗一新的汽车至少能保持一天。;
 }
 ,
	{
	title = 旅游;
	zs = 适宜;
	tipt = 旅游指数;
	des = 天气较好，同时又有微风伴您一路同行。虽会让人感觉有点凉，但仍适宜旅游，可不要错过机会呦！;
 }
 ,
	{
	title = 感冒;
	zs = 较易发;
	tipt = 感冒指数;
	des = 天气较凉，较易发生感冒，请适当增加衣服。体质较弱的朋友尤其应该注意防护。;
 }
 ,
	{
	title = 运动;
	zs = 较适宜;
	tipt = 运动指数;
	des = 天气较好，无雨水困扰，较适宜进行各种运动，但因气温较低，在户外运动请注意增减衣物。;
 }
 ,
	{
	title = 紫外线强度;
	zs = 最弱;
	tipt = 紫外线强度指数;
	des = 属弱紫外线辐射天气，无需特别防护。若长期在户外，建议涂擦SPF在8-12之间的防晒护肤品。;
 }
 ,
 );
 
 
 }
 ,
 );
	error = 0;
	date = 2016-03-11;
 }

 */

@interface KYweatherModel : NSObject


//@property(nonatomic,copy)NSString *status;
////需要的数据在result数组的第一个元素weather_data里
//@property(nonatomic,strong)NSArray *results;
//@property(nonatomic,copy)NSString *currentCity;
//@property(nonatomic,strong)NSNumber *pm25;
//@property(nonatomic,strong)NSArray *index;
//@property(nonatomic,strong)NSNumber *error;
//@property(nonatomic,copy)NSString *date;


@property(nonatomic,copy)NSString *dayPictureUrl;
@property(nonatomic,copy)NSString *weather;
@property(nonatomic,copy)NSString *temperature;


//提供一个方法回调请求到的数据
+(void)weatherWithUrl:(NSString *)url parma:(NSDictionary *)parma successBlock:(void(^)(KYweatherModel *model))successblock failureBlock:(void(^)(NSError *error))failureBlock;
@end
